package com.nyist.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 1.测试控制台
 *
 * @author yangxiaogen
 * @date 2023/3/2 17:14
 */
@Slf4j
@RestController
public class TestController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/portTest")
    public String portTest() {
        log.info("=====>>>portTest");
        return "test:port = " + port;
    }

    @GetMapping("/test")
    public String test() {
        log.info("=====>>>test");
        return "test";
    }
}
